package com.qf.controller;

import com.qf.service.DtsBrandService;
import com.qf.util.ResponseUtil;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/admin/brand")
public class AdminBrandController {

//    @Autowired
//    DtsBrandService brandService;

//    @GetMapping("/list")
//    public Object list(@RequestParam(value = "page",required = false,defaultValue = "1")Integer page,
//                       @RequestParam(value = "limit",required = false,defaultValue = "20")Integer limit,
//                       @RequestParam(value = "sort",required = false,defaultValue = "add_time")String sort,
//                       @RequestParam(value = "order",required = false,defaultValue = "desc")String order,
//                       Integer id,String name){
//
//        //分页查询
//        Map<String,Object> data = brandService.findByPage(page,limit,sort,order,id,name);
//
//        return ResponseUtil.ok(data);
//    }
}
